<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
	<div id="comments">
	<s:iterator value="comments">
		<div class="comentarios">
			<div class="gravatar">
				<img width="32" height="32" class="avatar avatar-32 photo avatar-default" src="http://www.gravatar.com/avatar/<s:property value="authorGravatar" />?s=32" alt=""/>			
			</div>
			<div id="comment-<s:property value="id" />" class="alt">
				<h3 class="comentariostitulo">
					<s:property value="authorName" /> said
				</h3>
				<p class="comentariosmeta">
					@<s:date name="createDate" nice="true" />
				</p>
				<p><s:property value="content" /></p>
			</div>
		</div>
	</s:iterator>
	<hr />
		<form id="commentform" method="post" action="addComment.do">
			<div id="author_info">
				<div class="row">
					<s:textfield name="comment.authorName" labelSeparator="" size="30"/>
					<label class="small" for="author">Name (required)</label>
				</div>
				<div class="row">
					<s:textfield name="comment.authorMail" labelSeparator="" size="30"/>
					<label class="small" for="email">E-mail (will not be published)</label>
				</div>
			</div>
			<!-- comment input -->
			<div class="row">
				<s:textarea name="comment.content" cols="110" rows="12" />
			</div>
			<!-- comment submit and rss -->
			<div id="submitbox">
				<div class="submitbutton">
					<input type="submit" value="提交评论" tabindex="5" class="button" id="submit" name="submit" />
				</div>
			</div>
			<input type="hidden" id="comment.postId" name="comment.postId" value="<s:property value="post.id" />" />
		</form>
	</div>